<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录成功</title>
    <style>
        .container {
            max-width: 800px;
            margin: 50px auto;
            text-align: center;
        }
        .user-info {
            margin: 20px 0;
            padding: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
    </style>
</head>
<body>
<div class="container">
    <h1>登录成功</h1>
    <div class="user-info" th:if="${user}">
        <img th:src="${user.avatar}" width="100" style="border-radius:50%">
        <h2 th:text="${user.nickname}"></h2>
        <p>OpenID: <span th:text="${user.wechatOpenid}"></span></p>
    </div>
    <a href="/logout" style="color:red">退出登录</a>
</div>
</body>
</html>